SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE view [dbo].[jubiladosporaños]
as
select distinct agente, year(fechabaja)as año from tb_serviciosagentes where causabaja = 0

GO
